import { request } from '@/utils/request'

// 左侧预警列表
export function remindList(param) {
    return request({
        url: '/remind/list',
        method: 'get',
        params: param
    })
}
//获取预警详情
export function remindDetail(param) {
    return request({
        url: '/remind/detail',
        method: 'get',
        params: param
    })
}

//保存预警详情
export function remindSave(param) {
    return request({
        url: '/remind/save',
        method: 'post',
        data: param
    })
}

//获取预警岗位
export function getRoleByNode(param) {
    return request({
        url: '/role/getRoleByNode',
        method: 'get',
        params: param
    })
}

//删除预警
export function remindDelete(param) {
    return request({
        url: '/remind/delete',
        method: 'post',
        params: param
    })
}

//预警角色保存
export function roleSave(param) {
    return request({
        url: '/role/saveRemind',
        method: 'post',
        data: param
    })
}

//预警角色删除
export function roleDelete(param) {
    return request({
        url: '/role/deleteRemind',
        method: 'post',
        data: param
    })
}